package com.makinolo.rlvforge.tacx.data
{
import flash.utils.ByteArray;

public class RLVInfoBox implements Persistent
{
	public static const RECORD_SIZE:int = 8;
	private var Frame:Number; // Frame number
	private var Cmd:int;
	
	/*public function RLVInfoBox(LEDataInputStream dis)
	{
		Frame = dis.readUnsignedInt();
		Cmd = dis.readInt();
	}*/
	
	public function RLVInfoBox(frame:Number, cmd:int)
	{		
		Frame = frame;
		Cmd = cmd;
	}
	
	public function getCmd():int
	{
		return Cmd;
	}
	public function setCmd(cmd:int):void
	{
		Cmd = cmd;
	}
	public function getFrame():Number
	{
		return Frame;
	}
	public function setFrame(frame:Number):void
	{
		Frame = frame;
	}
	
	public function persist(dos:ByteArray):void
	{
		dos.writeUnsignedInt(Frame);
		dos.writeInt(Cmd);
	}
	
}

}